/*     */ package com.lmpop.trade.shopcart;
/*     */ 
/*     */ public class Goods
/*     */ {
/*  15 */   private String goods_id = "";
/*  16 */   private String goods_props = "";
/*  17 */   private float shop_price = 0.0F;
/*  18 */   private float vip_price = 0.0F;
/*  19 */   private int buy_num = 0;
/*  20 */   private int integralNum = 0;
/*  21 */   private float weight = 0.0F;
/*  22 */   private String type = "";
/*  23 */   private String type_id = "";
/*  24 */   private String discount_id = "";
/*  25 */   private float offer_price = 0.0F;
/*  26 */   private String gift_id = "";
/*  27 */   private int sendnumber = 0;
/*     */ 
/*     */   public Goods() {
/*     */   }
/*  31 */   public String getGift_id() { return this.gift_id; }
/*     */ 
/*     */   public void setGift_id(String gift_id)
/*     */   {
/*  35 */     this.gift_id = gift_id;
/*     */   }
/*     */ 
/*     */   public Goods(String goods_id, String goods_props, float shop_price, float vip_price, int buy_num, int integralNum, float weight, String type, String type_id, String discount_id, float offer_price, String gift_id, int sendnumber)
/*     */   {
/*  41 */     this.goods_id = goods_id;
/*  42 */     this.goods_props = goods_props;
/*  43 */     this.shop_price = shop_price;
/*  44 */     this.vip_price = vip_price;
/*  45 */     this.buy_num = buy_num;
/*  46 */     this.integralNum = integralNum;
/*  47 */     this.weight = weight;
/*  48 */     this.type = type;
/*  49 */     this.type_id = type_id;
/*  50 */     this.discount_id = discount_id;
/*  51 */     this.offer_price = offer_price;
/*  52 */     this.gift_id = gift_id;
/*  53 */     this.sendnumber = sendnumber;
/*     */   }
/*     */ 
/*     */   public String toString()
/*     */   {
/*  58 */     return "discount_id=" + this.discount_id + ",offer_price=" + this.offer_price + ",gift_id=" + this.gift_id + ",sendnumber=" + this.sendnumber;
/*     */   }
/*     */   public float getWeight() {
/*  61 */     return this.weight;
/*     */   }
/*     */ 
/*     */   public void setWeight(float weight) {
/*  65 */     this.weight = weight;
/*     */   }
/*     */ 
/*     */   public float getOneTotalWeight()
/*     */   {
/*  71 */     return this.buy_num * this.weight;
/*     */   }
/*     */ 
/*     */   public int getBuy_num()
/*     */   {
/*  80 */     return this.buy_num;
/*     */   }
/*     */ 
/*     */   public String getGoods_id()
/*     */   {
/*  87 */     return this.goods_id;
/*     */   }
/*     */ 
/*     */   public String getGoods_props()
/*     */   {
/*  94 */     return this.goods_props;
/*     */   }
/*     */ 
/*     */   public String getType() {
/*  98 */     return this.type;
/*     */   }
/*     */ 
/*     */   public void setType(String type) {
/* 102 */     this.type = type;
/*     */   }
/*     */ 
/*     */   public String getType_id() {
/* 106 */     return this.type_id;
/*     */   }
/*     */ 
/*     */   public void setType_id(String type_id) {
/* 110 */     this.type_id = type_id;
/*     */   }
/*     */ 
/*     */   public int getIntegralNum() {
/* 114 */     return this.integralNum;
/*     */   }
/*     */ 
/*     */   public float getShop_price()
/*     */   {
/* 121 */     return this.shop_price;
/*     */   }
/*     */ 
/*     */   public float getTotalShopPrice() {
/* 125 */     return getBuy_num() * getShop_price();
/*     */   }
/*     */ 
/*     */   public float getTotalVipPrice() {
/* 129 */     return getBuy_num() * getVip_price();
/*     */   }
/*     */ 
/*     */   public int getTotalIntegralNum() {
/* 133 */     return getBuy_num() * getIntegralNum();
/*     */   }
/*     */ 
/*     */   public float getTotalOfferPrice() {
/* 137 */     return getBuy_num() * getOffer_price();
/*     */   }
/*     */ 
/*     */   public float getVip_price()
/*     */   {
/* 143 */     return this.vip_price;
/*     */   }
/*     */ 
/*     */   public void setBuy_num(int buy_num)
/*     */   {
/* 151 */     this.buy_num = buy_num;
/*     */   }
/*     */ 
/*     */   public void setGoods_id(String goods_id)
/*     */   {
/* 158 */     this.goods_id = goods_id;
/*     */   }
/*     */ 
/*     */   public void setGoods_props(String goods_props)
/*     */   {
/* 166 */     this.goods_props = goods_props;
/*     */   }
/*     */ 
/*     */   public void setIntegralNum(int integralNum) {
/* 170 */     this.integralNum = integralNum;
/*     */   }
/*     */ 
/*     */   public void setShop_price(float shop_price)
/*     */   {
/* 177 */     this.shop_price = shop_price;
/*     */   }
/*     */ 
/*     */   public void setVip_price(float vip_price)
/*     */   {
/* 184 */     this.vip_price = vip_price;
/*     */   }
/*     */ 
/*     */   public String getDiscount_id() {
/* 188 */     return this.discount_id;
/*     */   }
/*     */ 
/*     */   public void setDiscount_id(String discount_id) {
/* 192 */     this.discount_id = discount_id;
/*     */   }
/*     */ 
/*     */   public float getOffer_price() {
/* 196 */     if (this.offer_price < 1.0F)
/* 197 */       this.offer_price = this.shop_price;
/* 198 */     return this.offer_price;
/*     */   }
/*     */ 
/*     */   public void setOffer_price(float offer_price) {
/* 202 */     this.offer_price = offer_price;
/*     */   }
/*     */ 
/*     */   public int getSendnumber()
/*     */   {
/* 207 */     return this.sendnumber;
/*     */   }
/*     */ 
/*     */   public void setSendnumber(int sendnumber)
/*     */   {
/* 212 */     this.sendnumber = sendnumber;
/*     */   }
/*     */ }

/* Location:           F:\电商\commons-utils.jar
 * Qualified Name:     com.lmpop.trade.shopcart.Goods
 * JD-Core Version:    0.6.0
 */